# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
pkgname=unionfs-fuse
pkgver=3.4
pkgrel=0
pkgdesc="Union Filesystem in Userspace"
url="https://github.com/rpodgorny/unionfs-fuse"
arch="all"
license="BSD-3-Clause"
depends="fuse3"  # provides cmd:fusermount3
makedepends="fuse3-dev linux-headers"
checkdepends="py3-pytest cmd:fusermount"
options="!check" # requires /dev/fuse
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rpodgorny/unionfs-fuse/archive/v$pkgver.tar.gz
	0001-include-asm-ioctl.h-for-_IOC_SIZE.patch
	test-exepath.patch
	"

build() {
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
fb719c8548ab1fa43f236d5c3207d7e8e7a7dc45efed453e447e29452a7c4d03483c84b00fd615bac115781b333c8171d811b87a0227172010a2ab34224150f7  unionfs-fuse-3.4.tar.gz
a3dedebb86446a0b992c18d4cc27f223eac554e9688c0cfd6e4806302cb6afce3f691a1cabd540626cdbd7ee94171d6c39b361292c12f2ce43d885d04cf65412  0001-include-asm-ioctl.h-for-_IOC_SIZE.patch
281674f7754dced5ee50cbc979024ef294ba29761c9fe928bed6a473f1860e817f06c293eab2e7c0ba4241f33cc9425893261769c3dc973a6d7793e7d554dfd1  test-exepath.patch
"
